nw.Window.get().on('loaded', function() {
  var win = nw.Window.get();
  win.maximize();
  win.show();
}); 